package com.example.bugsnag.ohos;

import ohos.aafwk.ability.AbilityPackage;

import com.bugsnag.ohos.Bugsnag;
import com.bugsnag.ohos.Configuration;
import com.bugsnag.ohos.ExtraTest;
import com.bugsnag.ohos.util.OhosLog;

public class ExampleApplication extends AbilityPackage {


    @Override
    public void onInitialize() {
        super.onInitialize();
        OhosLog.i("ExampleApplication","onInitialize");
        Configuration config = Configuration.load(this);
        config.setUser("32312312312", "xiedi050@chinasoftinc.com", "xieDi");
        config.addMetadata("user", "age", 18);
        Bugsnag.start(this, config);

        // Initialise native callbacks
        ExtraTest.performNativeBugsnagSetupJava();
    }

}
